﻿using UnityEngine;
using System.Collections;

public class AddOwl : MonoBehaviour
{
    void OnTriggerEnter(Collider collider)
    {
        if (collider.name == "Ami")
        {
            EventManager.PostEvent(GameUI.DataType.Owl, 1);
            EventManager.PostEvent(Character.DataType.PlayAudio, "owl", false);
            GetComponent<SphereCollider>().isTrigger = false;
        }
    }
}
